from django.shortcuts import render
from django.views import View
from demo_book.models import BookInfo, HeroInfo


# Create your views here.
class TemplatesView( View ):

	# http://127.0.0.1:8000/templates/
	def get(self, request):
		books = BookInfo.objects.all()
		# print( books )
		context = {
			'books': books
		}
		return render( request, 'books.html', context )

	pass
